﻿using Algorithms;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;

namespace GeneticAlgorithmTests
{
    [TestClass]
    public class CustomMathTest
    {
        [TestMethod]
        public void ToRangeTest()
        {
            uint number = 561651; // TODO: Initialize to an appropriate value
            int max = 15; // TODO: Initialize to an appropriate value
            int min = 2;
            int actual;
            actual = CustomMath.ToRange(number, min, max);

            Assert.IsTrue(actual >= min && actual <= max);
            //todo: test
        }
    }
}
